package com.cn.jinl.dao;

import com.cn.jinl.domain.BoxManage;
import com.cn.jinl.domain.BoxManageExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface BoxManageMapper {
    int countByExample(BoxManageExample example);

    int deleteByExample(BoxManageExample example);

    int insert(BoxManage record);

    int insertSelective(BoxManage record);

    List<BoxManage> selectByExample(BoxManageExample example);

    int updateByExampleSelective(@Param("record") BoxManage record, @Param("example") BoxManageExample example);

    int updateByExample(@Param("record") BoxManage record, @Param("example") BoxManageExample example);

    List<BoxManage> selectBoxManageList(QueryForm queryForm);
    int selectBoxManageListCount(QueryForm queryForm);

    int batchInsertBoxManage(@Param("itemList") List<BoxManage> boxManages );

    int batchUpdateBoxManageByCode(List<BoxManage> boxManages );

    BoxManage selectBoxManage(@Param("boxCode")String boxCode);

    List<String> selectBoxManageWithNotUse();

    int selectNewBoxManageListCount(QueryForm queryForm);

    List<BoxManage> getNewBoxManageList(QueryForm queryForm);

    List<BoxManage> getNewBoxManageByUsed(QueryForm queryForm);

    List<BoxManage> getNewBoxManageByNotUsed(QueryForm queryForm);

    String selectMaxBoxCode(@Param("year")String year);
}